package lab02.test22;

public class Test {
    public static void main(String[] args) {
        //给定一个字符串 将字符串的所有大写字母变成小写字母，数字用0代替，其它的符号用#代替
        String result = "Hello,World!123";
       // hello#world#000
        char tmp;
        int i;
        for(i=0;i<result.length();i++);{
            tmp =result.charAt(i);

            if( tmp >='A'&& tmp <='Z'){
                System.out.println(tmp +32);
            }else if(tmp>='0'&& tmp <='9') {
                System.out.println(0);
            }else if(tmp>='a'&& tmp <='z') {
                System.out.println(tmp);
            }else if(tmp>='0'&& tmp <='9'){
                        System.out.println(0);
            }else {
                System.out.println("#");
            }

        }

    }
}
